import http from '../utils/axios';

import { Statistics } from '@/interface/index';

// export const getStaEchart1Api = (time: string) =>
//   http.post<Statistics.Echart>('/home/statistics/getEchart1', time);

// export const getStaEchart2Api = (time: string) =>
//   http.post<Statistics.Echart>('/home/statistics/getEchart2', time);
export const getStaEchart2Api = (time: {}) =>
  http.post<[]>('/other/statistics/tradeOrderData', time);
// export const getStaEchart3Api = (time: string) =>
//   http.post<Statistics.Echart>('/home/statistics/getEchart3', time);

// export const getStaDescriptions1Api = (time: string) =>
//   http.post<Statistics.Descriptions>('/home/statistics/getDescriptions1', time);
export const getStaDescriptions1Api = (time: {}) =>
  http.post<Statistics.Descriptions>('/other/statistics/tradeData', time);

// export const getStaShopEchart1Api = (time: string) =>
//   http.post<Statistics.Echart>('/home/statistics/getShopEchart1', time);

// export const getStaShopTable1Api = (time: string) =>
//   http.post<Statistics.Table>('/home/statistics/getShopTable1', time);
export const getStaShopTable1Api = (time: {}) =>
  http.post<any>('/other/statistics/goodsStatistics1', time);
// export const getStaShopTable2Api = (time: string) =>
//   http.post<any>('/home/statistics/getShopTable2', time);
export const getStaShopTable2Api = (time: {}) =>
  http.post<any>('/other/statistics/goodsStatistics', time);
